pub-headers: reduce C99 dependencies
authorJan Beulich <JBeulich@suse.com>
Wed, 28 Sep 2016 12:00:31 +0000 (06:00 -0600)
committerWei Liu <wei.liu2@citrix.com>
Fri, 30 Sep 2016 09:18:24 +0000 (10:18 +0100)
commit946c9ff4f421e7a57ceb8cdf160b271b556970d6
treeff5f365192a2abb3955158f7c8bae143f5b9e4fc
parent002e3ffb2156a135abbfb57374802922e162c5ae
pub-headers: reduce C99 dependencies

For consumers not using (fully) C99-aware compilers, limit the number
of places where tweaking of the headers would be necessary: Introduce
and use xen_mk_ullong(), allowing its helper macro to be overridden at
once.

For now don't touch public/io/, which also has a few offenders.

The need to include xen.h in hvm/e820.h demonstrates that it is a bad
idea to include public headers first thing - arch/x86/hvm/mtrr.c needs
adjustment just because of this.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/mtrr.c
xen/include/public/arch-arm.h
xen/include/public/hvm/e820.h
xen/include/public/memory.h
xen/include/public/vcpu.h
xen/include/public/xen.h
xen/include/public/xenoprof.h